<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true"%>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="jakarta.tags.core" %>
<%@ taglib prefix="ujn" uri="http://ujn.edu.cn/common/"%>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme() + "://" + request.getServerName()
          + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML>
<html>
<!--用户导航栏-->
<!--请勿随意修改该 demo 文件, 请复制后修改名称使用-->
<!--该 demo 仅规定了导航栏样式，css文件入js文件均不齐全，请根据需要添加-->
<!--css和 js具体添加方式和缺少文件参考老师发的 lab3 或 exam3 -->
<!--其他未尽事宜请阅读《停车场.md》文件-->

<head>
  <title>demo.jsp</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <!-- 引入css样式文件 -->
  <!-- Bootstrap Core CSS -->
  <link href="<%=basePath%>css/bootstrap.css" rel="stylesheet" />
  <!-- Bootstrap-grid CSS -->
  <link href="<%=basePath%>css/bootstrap-grid.css" rel="stylesheet" />
  <!-- Bootstrap-reboot CSS -->
  <link href="<%=basePath%>css/bootstrap-reboot.css" rel="stylesheet" />
</head>
<body>

<div>
  <nav class="navbar navbar-expand-lg navbar-dark " style="background-color:#81D8CF;;">
    <div class="container" style="">
      <a class="navbar-brand" href="#">停车场管理系统</a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText"
              aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse" id="navbarText">
        <ul class="navbar-nav mr-auto">
          <li class="nav-item">
            <a class="nav-link active" href="${pageContext.request.contextPath }/userself">个人信息</a>
          </li>
          <li class="nav-item">
            <a class="nav-link " href="${pageContext.request.contextPath }/bookself">车位预定</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="${pageContext.request.contextPath}/payments">全部订单</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="${pageContext.request.contextPath}/coupon">优惠券</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="${pageContext.request.contextPath }/rateself">收费标准</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="${pageContext.request.contextPath }/vehicleself">车辆信息</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="${pageContext.request.contextPath }/userequip">投诉反馈</a>
          </li>
        </ul>
        <span class="navbar-text">
          导航栏
        </span>
      </div>
    </div>
  </nav>
</div>


<%

  if (session.getAttribute("USER_SESSION")!=null) {
%>
<!--登录成功界面-->


<%
} else{
%>
<!--登陆失败界面-->
<div class="jumbotron jumbotron-fluid">
  <div class="container">
    <h1 class="display-4">欢迎您,登录后即可查看</h1>
    <p class="lead">
      <a href="${pageContext.request.contextPath}/login">Welcome, log in to view</a>
    </p>
  </div>
</div>
<%  }
%>


<!-- 引入js文件 -->
<script src="<%=basePath%>js/jquery-1.11.3.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="<%=basePath%>js/bootstrap.js"></script>
<!-- Bootstrap-bundle JavaScript -->
<script src="<%=basePath%>js/bootstrap.bundle.js"></script>
<!-- Metis Menu Plugin JavaScript -->
<script src="<%=basePath%>js/metisMenu.min.js"></script>
<!-- DataTables JavaScript -->
<script src="<%=basePath%>js/jquery.dataTables.min.js"></script>
<script src="<%=basePath%>js/dataTables.bootstrap.min.js"></script>
<!-- Custom Theme JavaScript -->
<script src="<%=basePath%>js/sb-admin-2.js"></script>

</body>
</html>
